﻿using ERP.Workflow.Designer.Application.Contracts;
using ERP.Workflow.Designer.Domain;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Application;
using Volo.Abp.AutoMapper;
using Volo.Abp.Modularity;

namespace ERP.Workflow.Designer.Application;

[DependsOn(
    typeof(AbpDddApplicationModule),
    typeof(WorkflowDesignerDomainModule),
    typeof(WorkflowDesignerApplicationContractsModule),
    typeof(AbpAutoMapperModule)


)]
public class WorkflowDesignerApplicationModule : AbpModule
{
    public override void ConfigureServices(ServiceConfigurationContext context)
    {
        context.Services.AddAutoMapperObjectMapper<WorkflowDesignerApplicationModule>();
        
        Configure<AbpAutoMapperOptions>(options =>
        {
            options.AddMaps<WorkflowDesignerApplicationModule>();
           
        });
        
    }
}
